package farmers.stream;


import lombok.Data;

import java.util.UUID;

// Person 实体类
@Data
class Person {
    private String uuid;
    private String name;
    private String gender;
    private int age;

    public Person(String name, String gender, int age) {
        String uuidStr = UUID.randomUUID().toString();
        uuidStr = uuidStr.split("-")[0];

        this.uuid = uuidStr;
        this.name = name;
        this.gender = gender;
        this.age = age;
    }
}
